package bmatch.tech.todo.config;

import bmatch.tech.todo.resource.MainResource;
import bmatch.tech.todo.resource.TokenNeededFilter;
import bmatch.tech.todo.resource.UserResource;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;

/**
 * @program:todo
 * @author:LinJinhao
 * @create:2018-12-28 01:05
 **/
@Component
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig(){
        register(UserResource.class);
        register(TokenNeededFilter.class);
        register(MainResource.class);

    }

}
